<template>
	<view class="foodpage">
		
		<!-- 轮播 -->
		<view class="top">
			<swiper class="swiper" circular  autoplay="true" indicator-dots interval="2000"	>
						<swiper-item>
							<view class="swiper-item">
								<image src="/static/image/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg.jpg" mode=""></image>
							</view>
						</swiper-item>
						<swiper-item>
							<view class="swiper-item">
							<image src="/static/image/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg.jpg" mode=""></image>
							</view>
						</swiper-item>
					
						
						
					</swiper>
		</view>
		
		
		
			

	
		
	<!-- 食材类别 -->
	
	<view class="bannerbox">
		<view class="bannertitlebox">
			适用基础病症人群
			<view class="titleline"></view>
		</view>
		<view class="list">
			<view class="listitem">
			糖尿病
			</view>
		</view>
	</view>
	
	
	
	
	<view class="bannerbox">
		<view class="bannertitlebox">
			功能性食品
			<view class="titleline"></view>
		</view>
		<view class="list">
			<view class="listitem">
				免疫力
			</view>
		</view>
	</view>
	


<view class="foodkutitle">
	<view class="title">
		特殊食品
	</view>
	<view class="lable">
	
	</view>
	<view class="line"></view>
</view>


<view class="foodbox">
	<view class="titleline">
		<view class="left">
			提高免疫力
		</view>
		<view class="lable">
			查看所有
		</view>
	</view>
	<view class="list">
		<view class="itemfood">
			<image src="/static/image/fd456a1456416.jpg" mode=""></image>
			<view class="itemname">
				土豆
			</view>
		</view>
	</view>
</view>
	
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
.foodpage{
	width: 750rpx;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(242,248,255,1) 0%,rgba(255,255,255,0) 76%);
	padding-bottom: 200rpx;
	
	.top{
		width: 100%;
		height: 320rpx;
		box-sizing: border-box;
		background: linear-gradient(180deg, #F3EEFF  0%,rgba(255,255,255,1) 100%);
		.swiper{
			width: 100%;
			height: 100%;
			box-sizing: border-box;
			padding:0 20rpx ;
			.swiper-item{
				width:99.5%;
				height: 99%;
				border-radius: 30rpx;
				box-sizing: border-box;
				position: relative;
			
				image{
					width: 100%;
					height: 100%;
					border-radius: 30rpx;
				}
		
			}
		}
	}
	
	

	.bannerbox{
		width: 100%;
		height: 350rpx;
		margin-top: 20rpx;
		box-sizing: border-box;
		padding: 20rpx 0 20rpx 20rpx ;
		background-color: white;
		.bannertitlebox{
			font-weight: bold;
			font-size: 30rpx;
			position: relative;
			.titleline{
				width: 60rpx;
				height: 8rpx;
				background-color:#1a4f8a;
				border-radius: 4rpx;
				position: absolute;
				left: 0;
				bottom: 0;
			}
		}
		.list{
			width: 100%;
			height: 85%;
			
			margin-top: 20rpx;
			display: flex;
			align-items: flex-start;
			flex-wrap: wrap;
			overflow-x: auto;
			.listitem{
				height: 50rpx;
				line-height: 50rpx;
				padding: 10rpx 30rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-radius: 24rpx;
				color:#585858;
				background-color: #f4f9ff;
				font-size: 30rpx;
				font-weight: 700;
				text-align: center;
				
				
			}
			
		}
	}
	.foodkutitle{
		display: flex;
		align-items: center;
		height: 32rpx;
		line-height: 32rpx;
		position: relative;
		margin: 50rpx 30rpx;
		.title{
			font-weight: bold;
		}
		.line{
			width: 60rpx;
			height: 8rpx;
			position: absolute;
			border-radius: 4rpx;
				background-color:#1a4f8a;
				left: 0;
				bottom: -3rpx;
		}
	}
	.foodbox{
		width: 100%;
		background-color: white;
		margin-top: 20rpx;
		box-sizing: border-box;
		padding: 20rpx;
		.titleline{
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 30rpx;
			line-height: 30rpx;
			.left{
				border-left: 6rpx solid #1a4f8a;
			    font-size: 30rpx;
					font-weight: bold;
					padding-left: 14rpx;
			}
			.lable{
				font-size: 26rpx;
				color: gray;
				font-weight: bold;
			}
		}
		.list{
			width: 100%;
			
			margin: 20rpx 0;
			.itemfood{
				width: 310rpx;
				height: 210rpx;
				border-radius: 30rpx;
				position: relative;
				image{
					width: 100%;
					height: 100%;
					border-radius: 30rpx;
				}
				.itemname{
					width: 100%;
					height: 42rpx;
					position: absolute;
					bottom: 0;
					left: 0;
					background-color: rgba(0, 0, 0, 0.5);
					color: white;
					border-bottom-left-radius: 30rpx;
					border-bottom-right-radius: 30rpx;
					text-align: center;
					line-height: 42rpx;
					font-size: 30rpx;
					
				}
			}
		}
	}
	
	
}
</style>
